package com.zeji.androidadvance.utils;

import android.util.Log;
import io.reactivex.rxjava3.disposables.Disposable;

public class CommonUtil {
    public static void dispose(Disposable... disposables) {
        for (Disposable disposable : disposables) {
            if (disposable != null && !disposable.isDisposed()) {
                disposable.dispose();
            }
        }
    }

    public static void log(Object... args) {
        StringBuilder sb = new StringBuilder();
        for (Object arg : args) {
            sb.append(arg);
        }
        Log.d("lzdTest", sb.toString());
    }
}
